package org.yefei.homeworkday15.onetwo;

public class SupervisoTest {

	public static void main(String[] args) {
		Supervisor s = new Supervisor("张指导");
		Teacher j = new JavaTeacher("老吴", 10, "男", "java");
		System.out.println(s.getName() + "督导员说：请老师先自我介绍。。。。。。");
		String evaluate = s.evaluate(j, "教得很好！");
		System.out.println(evaluate);

		// ???为什么运行时不会报异常
		System.out.println("<<<<<<<<<<<<<<<<<<<<<<<<<<这是测试向下转型，和作业无关！！！>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		JavaTeacher j1 = (JavaTeacher) j;
		j1.setName("老赵");
		j1.say();
		System.out.println("<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");

		Teacher d = new DotNetTeacher("小李", 3, "女", ".net");
		String evaluate2 = s.evaluate(d, "还不错，继续努力！");
		System.out.println(evaluate2);

		Teacher u = new UiTeacher("小王", 5, "女", "UI");
		String evaluate3 = s.evaluate(u, "继续保持！");
		System.out.println(evaluate3);
	}

}
